package com.bwsoft.admin.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


/**
 * 资讯POJO
 * 
 * @author Yan Bingda
 */
@Entity
@Table(name = "ne_news")
public class News implements Serializable {

	private static final long serialVersionUID = -8234439130110467371L;
	
	@Id
	@Column(name = "newsid")
	@GenericGenerator(name = "idGenerator", strategy = "identity")
	@GeneratedValue(generator = "idGenerator")
	private Integer newsId;
	private String title;
	private String summary;
	private String content;
	private String imgURL;
	@ManyToOne()
	@JoinColumn(name = "category")
	private NewsCategory category;
	private boolean lunboFlag;
	private String lunboImg;
	private Boolean status;
	private Date addTime;
	public Integer getNewsId() {
		return newsId;
	}
	public void setNewsId(Integer newsId) {
		this.newsId = newsId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getImgURL() {
		return imgURL;
	}
	public void setImgURL(String imgURL) {
		this.imgURL = imgURL;
	}
	public boolean isLunboFlag() {
		return lunboFlag;
	}
	public void setLunboFlag(boolean lunboFlag) {
		this.lunboFlag = lunboFlag;
	}
	public String getLunboImg() {
		return lunboImg;
	}
	public void setLunboImg(String lunboImg) {
		this.lunboImg = lunboImg;
	}
	public Date getAddTime() {
		return addTime;
	}
	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}
	public NewsCategory getCategory() {
		return category;
	}
	public Boolean getStatus() {
		return status;
	}
	public void setStatus(Boolean status) {
		this.status = status;
	}
	public void setCategory(NewsCategory category) {
		this.category = category;
	}
	
	
}
